import 'package:flutter/material.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBHelper/YBImageStyle/YBImageStyle.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBHelper/YBTextStyle/YBTextStyle.dart';

class YBWorkTaiSubImageTitlePage extends StatelessWidget {
  final String imageStr;
  final String titleStr;
  final double widthValue;
  final double heightValue;
  final TextStyle textStyleInfo;
  const YBWorkTaiSubImageTitlePage({Key key, this.imageStr, this.titleStr,this.widthValue,this.heightValue,this.textStyleInfo}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
        child: Column(
          children: [
            Container(
              child: Image.asset(YBImageStyle.getImagePath(imageStr)??"",width: widthValue,height: heightValue,),
            ),
            Container(
              height: YBTextStyle.adapterSize8,
            ),
            Container(
              child: Text(titleStr??"",style: textStyleInfo,),
            ),
          ],
        ),
    );
  }
}
